package com.sl.biz.modular.thread.dao.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sl.common.pojo.CommonOrgEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("process_thread_config")
@Entity(name = "process_thread_config")
public class ProcessThreadConfigDO extends CommonOrgEntity {

    /**
     * 线程编码
     */
    @Column
    private String threadCode;

    /**
     * 核心线程数
     */
    @Column
    private Integer corePoolSize;

    /**
     * 最大线程数
     */
    @Column
    private Integer maximumPoolSize;

    /**
     * 长时间处于空闲状态的连接保持时间
     */
    @Column
    private Long keepAliveTime;

    /**
     * 超时时间单位
     */
    @Column
    private String timeUnit;

    /**
     * 队列大小
     */
    @Column
    private Long queueCapacity;

    /**
     * 线程名称
     */
    @Column
    private String threadName;

    /**
     * 拒绝策略
     */
    @Column
    private String rejectPolicy;


    /**
     * 停用标记[1:停用,0:启用]
     */
    @Column
    private Integer disableFlag;
}
